<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" type="text/css" media="screen, projection" />
	<!--[if lte IE 6]><link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style_ie.css" type="text/css" media="screen, projection" /><![endif]-->
<!--	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/main.css" />-->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div id="wrapper">

	<div id="header">
		<div id="logo"><?php echo CHtml::link(CHtml::encode(Yii::app()->name),array('/')); ?></div>
	

		<div id="mainmenu">
			<?php $this->widget('zii.widgets.CMenu',array(
				'items'=>array(
					array('label'=>Yii::t('main', 'Home'), 'url'=>array('/')),
					array('label'=>Yii::t('main', 'About'), 'url'=>array('/site/page', 'view'=>'about')),
					array('label'=>Yii::t('main', 'Contact'), 'url'=>array('/site/contact')),
					array('label'=>Yii::t('main', 'Login'), 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
					array('label'=>Yii::t('main', 'Logout').' ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
				),
			)); ?>
		</div><!-- #mainmenu -->
	
	</div><!-- #header -->

	<?php echo $content; ?>

	<div id="footer">
	    <?php echo CHtml::link('English',array('','l'=>'en')).' ';
        echo CHtml::link('По-русски',array('','l'=>'ru')).' ';
        echo CHtml::link('Українською',array('','l'=>'uk'));
        ?>
        <br/>
        Copyright &copy; <?php echo date('Y'); ?> by Prolink.<br/>
        All Rights Reserved.<br/>
        Powered by <a href="mailto:paha@irpin.com">Paha</a>
	</div><!-- footer -->

</div><!-- #wrapper -->

</body>
</html>